package cn.yunyichina.scheduler.jobs.service.register.impl;

import cn.yunyichina.provider.framework.dubbo.service.RegisterService;
import cn.yunyichina.provider.iface.entity.common.Response;
import cn.yunyichina.scheduler.jobs.service.register.RegisterSchedulerService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 挂号定单重试定时任务
 * Created by Administrator on 2017/5/3.
 */
@Service
public class RegisterSchedulerServiceImpl implements RegisterSchedulerService{

    private static final Logger logger = LoggerFactory.getLogger(RegisterSchedulerServiceImpl.class);
    @Override
    public void doExecute() {
        Response response =  RegisterService.callUnderlineFromInternal("yyt.register.reg.scheduler.do","");
        if (!"0".equals(response.getResultCode())) {
            logger.error("doExecute, 挂号定单重试定时任务失败：" + response.getResultMessage());
        }
    }
}
